package JavaSEAdvance.day06_Date;

import java.util.Date;

/**
 * @author Xiao
 * @date 2021/7/22
 */
public class D601_DateDemo {
    /**
     * Date
     */
    public static void main(String[] args) {
        //需求：使用Date对象表示1970-02-01 00:00:00
        Date date1 = new Date(1 * 31 * 24 * 3600 * 1000);
        Date date2 = new Date(1 * 31L * 24 * 3600 * 1000);
        System.out.println(date1);  //Sat Dec 13 14:57:12 CST 1969
        System.out.println(date2);  //Sun Feb 01 08:00:00 CST 1970
    }
}
